package bookstore.iservice;

import bookstore.idao.IBookDao;
import java.util.List;

import bookstore.model.Book;

public interface IBookService {

    public void setBookDao(IBookDao bookDao);

   public void addBook(Book book);

    public void editBook(Book book);

    public void deleteBook(Integer book_id);

    public Book findBookById(Integer id);
    public void updateBook(Book book);

    public List<Book> findBooksByPage(Integer categoryId, String name, Integer pageSize, Integer pageNo);
     public List<Book> findByCatId(Integer catId,Integer pageNo, Integer pageSize);

    public Integer findCount(Integer categoryId, String name);
    
    public List<Book>findAllBook(Integer pageNo, Integer pageSize);
}
